from odoo import api, models, fields
from odoo.tools import date_utils


class nbd_folder(models.Model):
    _name = 'nbd.folder'
    _description = 'NBD文件夹管理'

    name = fields.Char(string='文件夹名称')
    parent_id = fields.Many2one('nbd.folder', string='文件夹父节点')
    task_id = fields.Char(string='项目ID')
    task_name = fields.Char(string='项目名称')
    child_ids = fields.One2many('nbd.folder', 'parent_id', string='文件夹子节点')
    description = fields.Char(string='描述')